Convert Applet to Application
Make it a JFrame instead of a JApplet and add the following code (if the class was PaintBrush).
public static void main(String[] args) {
PaintBrush p = new PaintBrush();
p.init();
p.setSize(520,520);
p.setVisible(true);
}
|